package org.tp8.sampleapp.view.wrapper;

import org.tp8.sampleapp.dms.model.Attachment;
import org.tp8.sampleapp.enums.CRUDAction;

/**
 * The Class AttachmentWrapper.
 */
public class AttachmentWrapper {

	/** The attachment. */
	private Attachment attachment;

	/** The action. */
	private CRUDAction action;

	/**
	 * Instantiates a new attachment wrapper.
	 * 
	 * @param attachment
	 *            the attachment
	 * @param action
	 *            the action
	 */
	public AttachmentWrapper(Attachment attachment, CRUDAction action) {
		this.attachment = attachment;
		this.action = action;
	}

	/**
	 * Gets the attachment.
	 * 
	 * @return the attachment
	 */
	public Attachment getAttachment() {
		return attachment;
	}

	/**
	 * Sets the attachment.
	 * 
	 * @param attachment
	 *            the attachment to set
	 */
	public void setAttachment(Attachment attachment) {
		this.attachment = attachment;
	}

	/**
	 * Gets the action.
	 * 
	 * @return the action
	 */
	public CRUDAction getAction() {
		return action;
	}

	/**
	 * Sets the action.
	 * 
	 * @param action
	 *            the action to set
	 */
	public void setAction(CRUDAction action) {
		this.action = action;
	}

}
